from openpyxl.cell.cell import column_index_from_string

from core.equals import Equals
from core.number_match_item import NumberMatchItem


class LetterMatchItem(NumberMatchItem):

    def __init__(self, source: str, target: str, equals: Equals or None = None):
        super().__init__(column_index_from_string(source), column_index_from_string(target), equals)

